package com.panfeng.xcloud.common.core.enums;

public enum ErrorCodeTypeEnum {
    CONTRACT_NOT_EXIST("\"err_code\":1014", "合约不存在"),
    CONTRACT_IN_SETTLEMENT("\"err_code\":1077", "交割结算中,当前品种资金查询失败"),
    INSUFFICIENT_CLOSE_AMOUNT_AVAILABLE("\"err_code\":1048", "可平仓仓位不足"),
    REDUCE_ONLY_REJECTED("2022", "ReduceOnly Order is rejected");

    private String code;
    private String message;

    private ErrorCodeTypeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
